package com.jushu.storbox.fragment;

import android.app.Fragment;
import android.view.View;
import android.widget.LinearLayout;

import com.jushu.storbox.view.pulltorefresh.PullDownScrollView;

public abstract class BaseFragment extends Fragment {
	private Object obj;
	private boolean canBack;
	private String parent;
	private int dir = -200;
	private View convertview = null;
	private LinearLayout shawodLayout = null;
	private PullDownScrollView pdsv = null;

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public Object getObj() {
		return this.obj;
	}

	public String getParent() {
		return this.parent;
	}

	public void setBack(boolean canBack) {
		this.canBack = canBack;
	}

	public boolean getCanBack() {
		return canBack;
	}

	public int getDir() {
		return this.dir;
	}

	public void setDir(int dir) {
		this.dir = dir;
	}

	public abstract void onDataLoaded();

	public abstract void refreshListFromServer();

	public View getConventview() {
		return this.convertview;
	}
	public LinearLayout getShawodLayout() {
		return this.shawodLayout;
	}
	public PullDownScrollView getPullDownScrollView() {
		return this.pdsv;
	}
}
